//
//  SDFile.h
//  SKinDiary
//
//  Created by pcyang on 16/6/26.
//  Copyright © 2016年 tencent. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SDFile : NSObject
+ (NSDate*)getItemCreatedTime:(NSString*)path;
+ (NSDate*)getItemModifiedTime:(NSString*)path;
+ (void)setItemModifed:(NSString*)path;
+ (unsigned long long)getFileSize:(NSString*)path;
+ (BOOL)fileExist:(NSString*)path;
+ (BOOL)deleteItem:(NSString*)path;
+ (NSString*)pathForMainBundleResource:(NSString*)fileName;
+ (void)moveFileFrom:(NSString*)fromPath to:(NSString*)toPath;
+ (void)copyFileFrom:(NSString*)fromPath to:(NSString*)toPath;
//helei
+ (long long) folderSizeAtPath:(NSString*) folderPath;
//删除文件夹下面的文件
+ (void)deleteDictionary:(NSString*)direString;

+ (BOOL) appendString:(NSString*) string toFileWithFilePath:(NSString*) path;
@end

@interface SDFile(Directory)
+ (NSString*)getDocumentDirectory;
+ (NSString*)getCacheDirectory;
+ (NSString*)getDirectoryInDocumentWithName:(NSString*)name;
+ (NSString*)getDirectoryInCacheWithName:(NSString*)name;
+ (void)checkDirectoryPath:(NSString*)path;

@end